import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import mixin from './mixin/mixin.js'

import Element from 'element-ui'
import "element-ui/lib/theme-chalk/index.css"
Vue.use(Element)

import axios from 'axios'
Vue.prototype.$axios = axios

import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false

const Middleware = Vue.extend({})
Vue.prototype.bus = new Middleware()

new Vue({
  router,
  store,
  render: h => h(App),
  beforeCreate() {
	  Vue.prototype.$bus = this // 安装全局事件总线，$bus就是当前应用的vm（暂时闲置没用）
  },
}).$mount('#app')
